import http from '@/utils/request'

export function queryCoachs(params){
    return http.post('/coach/list',{...params})
}

export function getAllCoachs(){
    return http.get('/coach/all')
}

export function getCoachById(id){
    return http.get(`/coach/${id}`)
}

export function addCoach(params){
    return http.post('/coach/add',{...params})
}

export function updateCoach(params){
    return http.put('/coach/update',{...params})
}